package com.liusand.activity.exception;

import com.liusand.entity.vo.Result;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author :liusha
 * packageName :com.liusand.user.exception
 * fileName :ExceptionHandle
 * creationTime :2022/12/12 20:03
 */
@RestControllerAdvice
public class ActivityExceptionHandler {
    @ExceptionHandler(RuntimeException.class)
    public Result runtimeException(Exception e){
        e.printStackTrace();
        return Result.error("服务器异常，请稍后再试");
    }

}
